<?php

class Application_Form_Client extends Zend_Form
{
    public function init()
    {
        $this->setName('Client');

        $client_id = new Zend_Form_Element_Hidden('client_id');
        $client_id->addFilter('Int');

                                          
        $name = new Zend_Form_Element_Text('name');
        $name->setLabel('name')
               ->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
               
        $email = new Zend_Form_Element_Text('email');
        $email->setLabel('email')
        		->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
        					  
       $telephone = new Zend_Form_Element_Text('telephone');
       $telephone->setLabel('telephone')
        		->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
               
       $address = new Zend_Form_Element_Text('address');
       $address->setLabel('address')
        		->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
               
       $created_date = new Zend_Form_Element_Text('created_date');
       $created_date->setLabel('created_date')
        		->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
        					  
               
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');

        $this->addElements(array($client_id, $name, $email, $telephone, $address , $created_date ,$submit));
    }
}